import 'package:json_annotation/json_annotation.dart';
part 'sign_history.g.dart';

/// @Author lixiaobin
/// @Date 2023/11/13
/// @Description
@JsonSerializable(explicitToJson: true)
class SignHistoryModel {
  String? signType;
  String? headIcon;
  String? createTime;
  String? signStatus;
  SignHistoryDoctor? chargeDoctor;
  SignHistoryDoctor? initiatorDoctor;
  PatientIdcard? patientIdcard;

  static SignHistoryModel fromJson(Map<String, dynamic> srcJson) =>
      _$SignHistoryModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$SignHistoryModelToJson(this);
}

@JsonSerializable(explicitToJson: true)
class SignHistoryDoctor {
  String? name;

  static SignHistoryDoctor fromJson(Map<String, dynamic> srcJson) =>
      _$SignHistoryDoctorFromJson(srcJson);

  Map<String, dynamic> toJson() => _$SignHistoryDoctorToJson(this);
}

@JsonSerializable(explicitToJson: true)
class PatientIdcard {
  String? name;
  String? age;
  String? sex;

  static PatientIdcard fromJson(Map<String, dynamic> srcJson) =>
      _$PatientIdcardFromJson(srcJson);

  Map<String, dynamic> toJson() => _$PatientIdcardToJson(this);
}
